const path = require("path");

const basePath = "c/resolve";
const filePath = "../user/why/xjh.html";

// console.log(path.basename(filePath));
// console.log(path.extname(filePath));
// 得到路径这样
// console.log(path.dirname(filePath));
console.log(path.join(basePath, filePath));
console.log(path.resolve(basePath, filePath));
